package com.wwwarehouse.carddesk.bean.teambean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @创建者 chenchao.
 * @创建时间 2017/11/16 10:05
 * @描述 ${TODO}
 */

public class DownClassInfoBean implements Parcelable {

    /**
     * list : [{"faceUrl":"https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg","isDelayed":0,"isLogin":0,"mobile":"18268258367","personName":"程伟","ranking":5,"userId":10001831},{"faceUrl":"https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg","isDelayed":0,"isLogin":0,"mobile":"18268258367","personName":"程伟","ranking":5,"userId":10001831},{"faceUrl":"https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg","isDelayed":0,"isLogin":0,"mobile":"18268258367","personName":"程伟","ranking":5,"userId":10001831}]
     * page : 1
     * size : 10
     * total : 3
     */

    private int page;
    private int            size;
    private int            total;
    private List<ListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * faceUrl : https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg
         * isDelayed : 0
         * isLogin : 0
         * mobile : 18268258367
         * personName : 程伟
         * ranking : 5
         * userId : 10001831
         */

        private String faceUrl;
        private String    isDelayed;
        private String    isLogin;
        private String mobile;
        private String personName;
        private int    ranking;
        private String    userId;

        public String getFaceUrl() {
            return faceUrl;
        }

        public void setFaceUrl(String faceUrl) {
            this.faceUrl = faceUrl;
        }

        public String getIsDelayed() {
            return isDelayed;
        }

        public void setIsDelayed(String isDelayed) {
            this.isDelayed = isDelayed;
        }

        public String getIsLogin() {
            return isLogin;
        }

        public void setIsLogin(String isLogin) {
            this.isLogin = isLogin;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getPersonName() {
            return personName;
        }

        public void setPersonName(String personName) {
            this.personName = personName;
        }

        public int getRanking() {
            return ranking;
        }

        public void setRanking(int ranking) {
            this.ranking = ranking;
        }

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public ListBean() {
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.faceUrl);
            dest.writeString(this.isDelayed);
            dest.writeString(this.isLogin);
            dest.writeString(this.mobile);
            dest.writeString(this.personName);
            dest.writeInt(this.ranking);
            dest.writeString(this.userId);
        }

        protected ListBean(Parcel in) {
            this.faceUrl = in.readString();
            this.isDelayed = in.readString();
            this.isLogin = in.readString();
            this.mobile = in.readString();
            this.personName = in.readString();
            this.ranking = in.readInt();
            this.userId = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeTypedList(this.list);
    }

    public DownClassInfoBean() {
    }

    protected DownClassInfoBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Parcelable.Creator<DownClassInfoBean> CREATOR = new Parcelable.Creator<DownClassInfoBean>() {
        @Override
        public DownClassInfoBean createFromParcel(Parcel source) {
            return new DownClassInfoBean(source);
        }

        @Override
        public DownClassInfoBean[] newArray(int size) {
            return new DownClassInfoBean[size];
        }
    };
}
